$margin-top: 8px;
$query-bar-height: 50px;
#root {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.home {
    height: 100%;
    width: 100%;
    // background-color: #F3F3F3;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    >.title-bg {
        width: 100%;
        height: 55px;
        background-color: #fff;
        position: fixed;
        top: 0;
        z-index: 999;
        box-shadow: 1px 4px 8px 1px #e0e0e0;
        >.title {
            margin: 0 auto;
            line-height: 50px;
            height: 100%;
            width: 1000px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
    }
    >.content-bg {
        width: 100%;
        padding-top: 70px;
        flex: 1;
        >.content {
            width: 1000px;
            height: 100%;
            margin: 0 auto;
            >.tool {
                width: 100%;
                height: 60px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                .sort {
                    cursor: pointer;
                }
                .query {
                    margin-left: 250px;
                    .type {
                        width: 100px;
                        margin-right: 4px;
                    }
                }
            }
            >.demand-content {
                vertical-align: top; 
                flex-shrink:1;
                .cardList {
                    padding-top: $margin-top * 2;
                    width: 1024px;
                    display: -webkit-flex;
                    flex-direction: row;
                    flex-wrap: wrap;
                    .upload-solution {
                        cursor: pointer;
                        position: absolute;
                        font-size: 18px;
                        top: 5px;
                        left: 215px;
                        color: #ffe58f;
                        &.syncing {
                            color: #999999;
                        }
                    }
                    .card {
                        position: relative;
                        height: 280px;
                        width: 240px;
                        display: inline-block;
                        background-color: white;
                        border: 1px solid #eeeeee;
                        margin-right: $margin-top*2;
                        margin-bottom: $margin-top*2;
                        .card-top-info {
                            height: 220px;
                            .card-log {
                                height: 145px;
                                line-height: 145px;
                                text-align: center;
                                font-size: 30px;
                                overflow: hidden;
                            }
                            .card-name {
                                margin: 0 $margin-top;
                                height: 50px;
                                line-height: 23px;
                                text-align: center;
                                font-size: 16px;
                                font-weight: bold;
                                .span-right {
                                    margin-left: $margin-top;
                                } // white-space: nowrap;
                                overflow: hidden;
                                text-overflow: ellipsis;
                                display: -webkit-box;
                                -webkit-line-clamp: 2;
                                -webkit-box-orient: vertical;
                            }
                            .card-label {
                                height: 22px;
                                line-height: 20px;
                                text-align: center;
                                font-size: 12px;
                                color: #999999;
                                overflow: hidden;
                            }
                            .card-time {
                                height: 22px;
                                line-height: 20px;
                                text-align: center;
                                font-size: 12px;
                                color: #999999;
                                overflow: hidden;
                            }
                        }
                        .card-top-ctrl {
                            height: 220px;
                            line-height: 220px;
                            text-align: center;
                            overflow: hidden;
                        }
                    }
                    .card-bottom {
                        height: 60px;
                        line-height: 60px;
                        border-top: 1px solid #eeeeee;
                        .user-manager {
                            width: 100%;
                            height: 100%;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            .add-user {
                                width: 24px;
                                height: 24px;
                                line-height: 24px;
                                font-style: normal;
                                border-radius: 50%;
                                text-align: center;
                                background-color: #E1E1E1;
                                background-repeat: no-repeat;
                                background-size: 100% auto;
                                color: #666;
                                cursor: pointer;
                            }
                        }
                        .tool {
                            width: 100%;
                            height: 100%;
                            display: flex;
                            align-items: center;
                            justify-content: space-around;
                            .ant-row {
                                width: 100%;
                                height: 100%;
                                .gutter-row {
                                    cursor: pointer;
                                    text-align: center;
                                }
                            }
                        }
                    }
                }
            }
            >.foot-bar {
                margin-top: $margin-top;
                height: $query-bar-height;
                width: 100%;
                hr {
                    margin: $query-bar-height/2 0;
                    border-top: 1px solid #e9e9e9;
                }
                .foot-text {
                    height: $query-bar-height;
                    width: 100%;
                    line-height: $query-bar-height;
                    text-align: center;
                }
            }
        }
    }
}

.add-solution-info {
    margin-bottom: 7px;
    .valid-border {
        border-color: #f5222d;
    }
    .req {
        color: #f5222d;
    }
    .valid {
        color: #f5222d;
    }
    .tags {
        width: 100%;
    }
}